

#pragma once

#include "cocos2d.h"
USING_NS_CC;

#include "type.h"
#include "campaigninfo.h"

struct FormationInfo;

class CampaignIntroLayer : public CCLayer, public CCKeypadDelegate {
public:
	CampaignIntroLayer();
	virtual ~CampaignIntroLayer();

    CREATE_FUNC(CampaignIntroLayer);

	void setCampaignInfo(const char* title, const char* text);

private:
	virtual bool init();

	void onClose(CCObject* sender);
	void onPlayGame(CCObject* sender);

	virtual void keyBackClicked();
	virtual void keyMenuClicked();

public:
	FormationInfo* campaignFormation;


private:
	CCLabelTTF* _title;
	CCLabelTTF* _intro;

	CCNode* _dialogBg;

	char buf[200];
};
